package sugarbind_input

class Ligand_Synonym {

    String ligand_Synonym_Name
	
    static constraints = {
			ligand_Synonym_Name(blank:false)
			ligand_Synonym_Name(unique:true)
	}
	
	static hasOne = [ligand: Ligand]
	
	static mapping = {
//		id column: 'ligand_synonym_id'
		id generator: 'sequence', params: [sequence: 'ligand_synonym_id_seq']
	}
	
	public String toString(){
		ligand_Synonym_Name + " " + ligand.full_Name
	}
}
